package com.ks.app.admin.service.impl;

import java.util.*;
import javax.persistence.Query;
import org.springframework.stereotype.Service;
import com.ks.app.admin.service.CacheService;


@Service("cacheService")
public class CacheServiceImpl extends BaseServiceImpl implements CacheService {
	
	@SuppressWarnings("unchecked")
	public List loadDB(String className) {
		// logger.info( "-------------------------------------load class " +
		// className );
		String sql = " from  " + className;
		Query query = em.createQuery(sql);
		List list = query.getResultList();
		return list;
	}

}
